import request from '../utils/request';

export const getAllGoods = query => {
    return request({
        url: 'goodsmanage/getgoods',
        method: 'POST',
        params: query
    });
};

export const editGoods = query => {
    return request({
        url: 'goodsmanage/editgoods',
        method: 'POST',
        params: query
    });
};

export const addGoods = query => {
    return request({
        url: 'goodsmanage/addgoods',
        method: 'POST',
        params: query
    });
};

export const delGoods = query => {
    return request({
        url: 'goodsmanage/delgoods',
        method: 'POST',
        params: query
    });
};

export const getClassify = query => {
    return request({
        url: 'goodsmanage/getclassify',
        method: 'GET',
        params: query
    });
};

export const addModelData = query => {
    return request({
        url: 'goodsmanage/addmodel',
        method: 'POST',
        params: query
    });
};

export const changeModelData = query => {
    return request({
        url: 'goodsmanage/changemodel',
        method: 'POST',
        params: query
    });
};